INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

IF(WIN32)
ELSE(WIN32)
	LINK_DIRECTORIES(/usr/local/netcdfcxx/lib)
	LINK_DIRECTORIES(/usr/local/netcdf4/lib)
ENDIF(WIN32)

SET(LIB_NAME OCVolumeConverter)

SET(TARGET_H
)

SET(TARGET_SRC
	main.cpp
)

SETUP_GROUP()

SET(TARGET_COMMON_LIBRARIES 
	OCMain
	OCVolume
	OCGrib
	OCNetCDF
)

IF(WIN32)
	SET(TARGET_EXTERNAL_LIBRARIES 
	)
ELSE(WIN32)	
	SET(TARGET_EXTERNAL_LIBRARIES 
		netcdf_c++4	
		netcdf
	)
ENDIF(WIN32)

SETUP_APPLICATION(${LIB_NAME})

ADD_DEPENDENCIES(${LIB_NAME} OCMain)
ADD_DEPENDENCIES(${LIB_NAME} OCVolume)
ADD_DEPENDENCIES(${LIB_NAME} OCGrib)
ADD_DEPENDENCIES(${LIB_NAME} OCNetCDF)
